package com.diamond.entity;

import static javax.persistence.GenerationType.IDENTITY;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Formula entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "formula", catalog = "diamond")
public class Formula implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = 5741922112536100571L;
	private Long formulaId;
	private Long userId;
	private String formulaName;
	private Integer importance;
	private Double rate;
	private String utime;
	private Integer state;
	private String weight;
	private String colour;
	private String purity;
	private String cutter;
	private String symmetry;
	private String buffing;
	private String fluorescence;
	private String cerificate;

	// Constructors

	/** default constructor */
	public Formula() {
	}

	/** full constructor */
	public Formula(Long userId, String formulaName, Integer importance,
			Double rate, String utime, Integer state, String weight,
			String colour, String purity, String cutter, String symmetry,
			String buffing, String fluorescence, String cerificate) {
		this.userId = userId;
		this.formulaName = formulaName;
		this.importance = importance;
		this.rate = rate;
		this.utime = utime;
		this.state = state;
		this.weight = weight;
		this.colour = colour;
		this.purity = purity;
		this.cutter = cutter;
		this.symmetry = symmetry;
		this.buffing = buffing;
		this.fluorescence = fluorescence;
		this.cerificate = cerificate;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "formula_id", unique = true, nullable = false)
	public Long getFormulaId() {
		return this.formulaId;
	}

	public void setFormulaId(Long formulaId) {
		this.formulaId = formulaId;
	}

	@Column(name = "user_id")
	public Long getUserId() {
		return this.userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	@Column(name = "formula_name", length = 500)
	public String getFormulaName() {
		return this.formulaName;
	}

	public void setFormulaName(String formulaName) {
		this.formulaName = formulaName;
	}

	@Column(name = "importance")
	public Integer getImportance() {
		return this.importance;
	}

	public void setImportance(Integer importance) {
		this.importance = importance;
	}

	@Column(name = "rate", precision = 22, scale = 0)
	public Double getRate() {
		return this.rate;
	}

	public void setRate(Double rate) {
		this.rate = rate;
	}

	@Column(name = "utime", length = 500)
	public String getUtime() {
		return this.utime;
	}

	public void setUtime(String utime) {
		this.utime = utime;
	}

	@Column(name = "state")
	public Integer getState() {
		return this.state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	@Column(name = "weight", length = 500)
	public String getWeight() {
		return this.weight;
	}

	public void setWeight(String weight) {
		this.weight = weight;
	}

	@Column(name = "colour", length = 500)
	public String getColour() {
		return this.colour;
	}

	public void setColour(String colour) {
		this.colour = colour;
	}

	@Column(name = "purity", length = 500)
	public String getPurity() {
		return this.purity;
	}

	public void setPurity(String purity) {
		this.purity = purity;
	}

	@Column(name = "cutter", length = 500)
	public String getCutter() {
		return this.cutter;
	}

	public void setCutter(String cutter) {
		this.cutter = cutter;
	}

	@Column(name = "symmetry", length = 500)
	public String getSymmetry() {
		return this.symmetry;
	}

	public void setSymmetry(String symmetry) {
		this.symmetry = symmetry;
	}

	@Column(name = "buffing", length = 500)
	public String getBuffing() {
		return this.buffing;
	}

	public void setBuffing(String buffing) {
		this.buffing = buffing;
	}

	@Column(name = "fluorescence", length = 500)
	public String getFluorescence() {
		return this.fluorescence;
	}

	public void setFluorescence(String fluorescence) {
		this.fluorescence = fluorescence;
	}

	@Column(name = "cerificate", length = 500)
	public String getCerificate() {
		return this.cerificate;
	}

	public void setCerificate(String cerificate) {
		this.cerificate = cerificate;
	}

}